package com.jzl.swing.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.jzl.swing.entity.Bill;
import com.jzl.swing.rowmapper.RowMapper;

public class BillRowMapper implements RowMapper{

	@Override
	public Object getObjectMapper(ResultSet rSet) throws SQLException {
		Bill bill = new Bill();
		bill.setBill_number(rSet.getString("bill_number"));
		bill.setBill_product_name(rSet.getString("bill_product_name"));
		bill.setBill_product_number(rSet.getString("bill_product_number"));
		bill.setBill_price(rSet.getString("bill_price"));
		bill.setBill_ispaid(rSet.getString("bill_ispaid"));
		bill.setBill_supplierName(rSet.getString("bill_supplierName"));
		bill.setBill_product_decrib(rSet.getString("bill_product_decrib"));
		bill.setBill_date(rSet.getString("bill_date"));
		return bill;
	}
	
}
